package com.jintoufs.dao.baseinfo;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.baseinfo.Customer;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/9/1 0001.
 */
@Repository
public interface CustomerDAO {
    List<Customer> queryByParams(Map<String, Object> params);

    void insert(Customer customer);

    void update(Customer customer);

    void delete(Integer id);

    List<Customer> getByFilter(QueryFilters filters);

    Map<String, Object> getById(int id);
}
